package stringMVC.service;

import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import stringMVC.mapper.InfoMapper;
import stringMVC.model.MessageInfo;
import stringMVC.model.UserInfo;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private InfoMapper infoMapper;
    public List<MessageInfo> getList(){
        return infoMapper.query();
    }

    public Integer insertUserInfo(MessageInfo messageInfo){
        return infoMapper.insert(messageInfo);
    }
}
